package com.monkeygroup.mygoplus.view.home.activity.person;

import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.monkeygroup.mygoplus.R;
import com.monkeygroup.mygoplus.base.BaseActivity;
import com.monkeygroup.mygoplus.view.home.activity.PubliseedChooseActivity;

/**
 * Created by cumt on 2017/6/19.
 */

public class PersonChooseActivity extends BaseActivity implements View.OnClickListener {

    public static void gotoActivity(Activity activity) {
        Intent intent = new Intent(activity,
                PersonChooseActivity.class);

        activity.startActivity(intent);
    }

    private ImageView imgBack;
    private TextView txtTitle;

    private LinearLayout ll_agent,ll_expert,ll_brand;

    @Override
    public void onClick(View v) {


    }

    @Override
    public void setContentView() {
        setContentView(R.layout.personal_choose);
    }

    @Override
    public void initView() {

        imgBack = (ImageView) findViewById(R.id.img_back);
        txtTitle = (TextView) findViewById(R.id.txt_title);
        txtTitle.setText("註冊身份");

        ll_agent= (LinearLayout) findViewById(R.id.ll_agent);
        ll_expert= (LinearLayout) findViewById(R.id.ll_expert);
        ll_brand= (LinearLayout) findViewById(R.id.ll_brand);



    }

    @Override
    public void setListener() {




    }

    @Override
    public void doEvent() {

        imgBack.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                finish();
            }
        });

        ll_agent.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ApplyIdentifyActivity.gotoActivity(PersonChooseActivity.this,"0",0);

            }
        });
        ll_expert.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ApplyIdentifyChooseActivity.gotoActivity(PersonChooseActivity.this,"1");

            }
        });
        ll_brand.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                ApplyIdentifyChooseActivity.gotoActivity(PersonChooseActivity.this,"2");

            }
        });

    }
}
